package com.yonyou.marketing.app.api.model;

import java.util.Date;

import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TT_MESSAGE")
public class TtMessage {

    @Id
    @Column(name = "MESSAGE_ID")
    @SequenceGenerator(name = "", sequenceName = "SEQ_TT_MESSAGE")
    private Long   messageId;

    @Column(name = "USER_ID")
    private Long   userId;

    @Column(name = "MESSAGE_TITLE")
    private String messageTitle;

    @Column(name = "MESSAGE_CONTENT")
    private String messageContent;

    @Column(name = "READING_FLAG")
    private String readingFlag;

    @Column(name = "MESSAGE_TYPE")
    private String messageType;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATE_DATE")
    private Date   createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "UPDATE_DATE")
    private Date   updateDate;

    private String codeName;
    
    private String date;
    
    private String time;
    
    private String userName;
    
    private String phone;

    /**
     * @return MESSAGE_ID
     */
    public Long getMessageId() {
        return messageId;
    }

    /**
     * @param messageId
     */
    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    /**
     * @return USER_ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @return MESSAGE_TITLE
     */
    public String getMessageTitle() {
        return messageTitle;
    }

    /**
     * @param messageTitle
     */
    public void setMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
    }

    /**
     * @return MESSAGE_CONTENT
     */
    public String getMessageContent() {
        return messageContent;
    }

    /**
     * @param messageContent
     */
    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    /**
     * @return READING_FLAG
     */
    public String getReadingFlag() {
        return readingFlag;
    }

    /**
     * @param readingFlag
     */
    public void setReadingFlag(String readingFlag) {
        this.readingFlag = readingFlag;
    }

    /**
     * @return MESSAGE_TYPE
     */
    public String getMessageType() {
        return messageType;
    }

    /**
     * @param messageType
     */
    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    /**
     * @return the createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate the createDate to set
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return the updateDate
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate the updateDate to set
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return the codeName
     */
    public String getCodeName() {
        return codeName;
    }

    /**
     * @param codeName the codeName to set
     */
    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    
    /**
     * @return the date
     */
    public String getDate() {
        return date;
    }

    
    /**
     * @param date the date to set
     */
    public void setDate(String date) {
        this.date = date;
    }

    
    /**
     * @return the time
     */
    public String getTime() {
        return time;
    }

    
    /**
     * @param time the time to set
     */
    public void setTime(String time) {
        this.time = time;
    }

    
    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }

    
    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    
    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    
    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
}
